package com.zhuzhoujia.city_wide_action;

import com.example.zhuzhoujia.R;
import com.zhuzhoujia.activityparent.ActivityParent;

import android.app.ActionBar;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

public class CreateActivity extends ActivityParent {
	private String[] number = { "1", "2", "3", "4", "5", "6", "7", "8" };
	private Spinner count;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ActionBar actionBar = this.getActionBar();
		actionBar.setDisplayShowHomeEnabled(false);
		actionBar.setBackgroundDrawable(getResources().getDrawable(R.color.green));
		actionBar.setDisplayShowTitleEnabled(true);
		setStatusBarTintResource(this, R.color.green);
		actionBar.setCustomView(R.layout.create_activity_actionbar);
		actionBar.setDisplayShowCustomEnabled(true);
		setContentView(R.layout.create_activity);

		count = (Spinner) findViewById(R.id.people_number);
		ArrayAdapter<String> numberAadapter = new ArrayAdapter<String>(this, R.layout.spinner_item, number);
		count.setAdapter(numberAadapter);

	}
}
